tools: libxl: Use correct printf format for uint64_t
authorIan Campbell <ian.campbell@citrix.com>
Fri, 24 Jul 2015 10:41:17 +0000 (11:41 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 24 Jul 2015 10:44:41 +0000 (11:44 +0100)
commit78222eb476e24833880a94e8cbd193e797abbe18
treea3e963affb22c957484b34262950611da045aad2
parent3fd3edf3c1c243a831385ae7b8e1ed68bd967461
tools: libxl: Use correct printf format for uint64_t

Since 25652f232cbe "tools/libxl: detect and avoid conflicts with RDM"
the build is broken for x86_32 and arm32 with:

libxl_dm.c: In function ‘libxl__domain_device_construct_rdm’:
libxl_dm.c:349:13: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘uint64_t’ [-Werror=format=]
             LOG(ERROR, "RDM conflict at 0x%lx.\n", d_config->rdms[i].start);
             ^
libxl_dm.c:352:13: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘uint64_t’ [-Werror=format=]
             LOG(WARN, "Ignoring RDM conflict at 0x%lx.\n",

Use PRIx64 for these.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Cc: Tiejun Chen <tiejun.chen@intel.com>
tools/libxl/libxl_dm.c